package org.dlnu.xeon.service;

import org.dlnu.xeon.domain.User;

import java.util.List;

public interface UserService {
    /*
     *查询所有用户
     */
    List<User> selectAllUser ();

    /*
     *查询登录用户是否正确
     */
    User selectLoginUser(String number,String password);

    /**
     * 查找一个用户
     * @param uid
     * @return
     */
    User selectUser (Long uid);

    User selectUserByName (String name);

    User selectUserByIdNumber (String id_number);

    User selectUserByNumber (String number);

    User selectUserByUnit (String unit);

    /**
     * 新增一个用户
     * @param user
     * @return
     */
    Long insertUser(User user);

    Long insertUserAndAdmin(User user);

    /**
     * 更新用户信息
     * @param user
     * @return
     */
    User updateUser(User user);

    /**
     * 删除一个用户
     * @param uid
     */
    void deleteUser(Long uid);
}
